<?php
// Home

$page->title = 'North Rock Hill Church';

$page->script( "
  $(window).load(function(){

    // Start the foundation orbit slider
    $('.homepage-slider').orbit({
      timer: true,
      directionalNav: true,
      animation: 'fade',
      animationSpeed: 500,
      advanceSpeed: 5000,
      pauseOnHover: true,
      startClockOnMouseOut: true,
      startClockOnMouseOutAfter: 1000,
      captions: true,
      captionAnimation: 'vertical-slide',
      captionAnimationSpeed: 200,
      bullets: true,
      bulletThumbs: false,
      bulletThumbLocation: 'snippets/slider/thumb/',
      fluid: '262x100'
    });

    // Load the tweets
    $('#tweets').load('tweets/one',function() {
      $(this).fadeIn(800);
    });

  });
" );

?>

<section id="crown">
  <div class="row">
    <div class="twelve columns">
      <?php snippet('submenu.php', array( 'page'=>$page )) ?>
    </div>
  </div>
  <?php if($page->isHomePage() && publish('','2013-02-18') ): ?>
  <div class="row">
    <div class="twelve columns">
        <div class="alert-box alert">
            Due to snow/ice &amp; dangerous driving conditions, morning worship services @nrhc are cancelled tomorrow. Enjoy the day &amp; be safe.
        </div>
    </div>
  </div>
  <?php endif ?>
  <div class="row">
    <div class="twelve columns">
      <?php if( $page->isHomePage() ): ?>
      <?php snippet( 'slider.php', array( 'page'=>$page )) ?>
      <?php endif ?>
    </div>
  </div>
  <div class="row">
    <div class="twelve columns">
      <div id="tweets" class="loaded" style="display: none;">
        <p>Loading&hellip;</p>
      </div>
    </div>
  </div>
</section>

<hr>

<section id="featured-news">

  <ul class="block-grid four-up mobile-two-up">
    <?php snippet('home-featured-news.php', array('page'=>$page)) ?>
  </ul>

</section>

<section>
  <p>
    <a href="<?php echo url( '/news' ) ?>" class="button">Read NRHC news &raquo;</a><br>
    <a href="<?= wufoo('nrhc-enews') ?>" target="_blank"><strong>Subscribe</strong> to the NRHC eNews</a>
  </p>
</section>

